import React from "react";
import Welcome from "../components/Welcome/Welcome";
import Home from "../components/Home";
import Home1 from "../components/Home1/Home1";
import Home2 from "../components/Home2/Home2";
import Children from "../components/Children/Children";
import Login from "../components/Login";
import Test from "../components/Test";
import HomeIndex from "../components/Home_Index";
import HomeToDo from "../components/Home_ToDo";
import HomeMessage from "../components/Home_Message";
import HomePersionCenter from "../components/Home_PersonalCenter";
export default [
    {
        path:'/',
        exact:true,
        element:<Welcome />,
        name:'欢迎页',
        children:[]
    },
    {
        path:'home',
        exact:false,
        element:<Home />,
        name:'home',
        children:[
            {
                path:'homeindex',
                exact:false,
                element:<HomeIndex />,
                name:'HomeIndex',
            },
            {
                path:'message',
                exact:false,
                element:<HomeMessage />,
                name:'HomeMessage',
            },
            {
                path:'todo',
                exact:false,
                element:<HomeToDo />,
                name:'HomeToDo',
            },
            {
                path:'personalCenter',
                exact:false,
                element:<HomePersionCenter />,
                name:'HomePersionCenter',
            },
        ]
    },
    {
        path:'login',
        exact:false,
        element:<Login />,
        name:'login',
        children:[
        ]
    },
    {
        path:'test',
        exact:false,
        element:<Test />,
        name:'test',
        children:[
        ]
    },
    {
        path:'children',
        exact:false,
        element:<Children />,
        name:'Children',
        children:[
            {
                path:'home1',
                exact:false,
                element:<Home1 />,
                name:'home1',
            },
            {
                path:'home2',
                exact:false,
                element:<Home2 />,
                name:'home2',
            },
        ]
    }

]
